home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / x11 / winman / fvwm2rc95fixed < prev    next >
Text File  |  1997-08-26  |  23KB  |  635 lines

  1. #
  2. # .fvwm2rc95 example configuration file for fvwm95-2.0.41
  3. # This is fixed! The modules path was wrong. Place this in your home dir
  4. # with the name .fvwm2rc95
  5.  
  6. #========================================================================#
  7.  
  8. #
  9. # Fonts - one for window titles, another for icons, and another for the menus
  10. #
  11. WindowFont    -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*-*-*
  12. IconFont    fixed
  13. MenuFont       -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*
  14.  
  15. #
  16. # Set the default window colors. The syntax is:
  17. #  DefaultColors winforecolor winbackcolor titleforecolor titlebackcolor
  18. # where:
  19. #  winbackcolor    is the background (border) color of all windows,
  20. #                  including the menu windows 
  21. #  winforecolor    is used for the menu text
  22. #  titlebackcolor  is the background color used for title bars of 
  23. #                  non selected windows
  24. #  titleforecolor  is the color of the title text of non selected windows
  25. #
  26. DefaultColors   Black #c0c0c0 #c0c0c0 grey51
  27.  
  28. #
  29. # Text and background color for the title bar of the active (selected) window
  30. #
  31. HilightColors   White #000080
  32.  
  33. #
  34. # Text and background color for the title bar of sticky windows
  35. #
  36. StickyColors    grey51 #60c080
  37.  
  38. # You can also use the Style command to set the colors of individual
  39. # title bars of some non-selected windows
  40.  
  41. #Style "*" ForeColor #c0c0c0
  42. #Style "*" BackColor grey51
  43.  
  44. #========================================================================#
  45.  
  46. #
  47. # Set up the major operating modes
  48. #
  49.  
  50. Style "*" ClickToFocus
  51. # Comment the above and uncomment one of the following if you prefer
  52. # focus follow mouse.
  53. #Style "*" MouseFocus
  54. #Style "*" SloppyFocus
  55.  
  56. # If we use the FvwmTaskBar we don't need the icons :-)
  57. # Style "..." Icon are also commented below.
  58. Style "*" NoIcon
  59. Style "*" MWMFunctions
  60. Style "*" HintOverride
  61. Style "*" MWMDecor
  62. Style "*" DecorateTransient
  63.  
  64. OpaqueMoveSize 100
  65. EdgeScroll 100 100
  66. EdgeResistance 10000 0
  67.  
  68. #
  69. # RandomPlacement prevents user interaction while placing windows:
  70. #
  71. Style "*" RandomPlacement
  72.  
  73. #
  74. # NoPPosition instructs fvwm to ignore the PPosition field in window 
  75. # geometry hints. Emacs annoyingly sets PPosition to (0,0)!
  76. #
  77. Style "*" NoPPosition
  78.  
  79. #========================================================================#
  80.  
  81. #
  82. # Set the desk top size in units of physical screen size
  83. #
  84. DeskTopSize 3x2
  85.  
  86. #========================================================================#
  87.  
  88. #
  89. # Module path and paths to the icons
  90. # ModulePath is a colon-separated list, just like regular unix PATH
  91. #
  92. ModulePath /usr/local/lib/X11/fvwm95-2/
  93. PixmapPath /usr/include/X11/pixmaps/:/usr/local/mini-icons/
  94. IconPath   /usr/include/X11/bitmaps/:/usr/local/icons/
  95.  
  96. #========================================================================#
  97.  
  98. # Set the decoration styles and window options
  99. # If compatible styles are set for a single window in multiple Style
  100. # commands, then the styles are ORed together. If conflicting styles
  101. # are set, the last one specified is used.
  102.  
  103. # These commands should command before any menus or functions are defined,
  104. # and before the internal pager is started.
  105.  
  106. #
  107. # Default border and handle widths
  108. #
  109. Style "*" BorderWidth 5, HandleWidth 5
  110.  
  111. Style "Fvwm*"        NoTitle, Sticky, WindowListSkip
  112. Style "Fvwm Pager"   StaysOnTop, NoHandles
  113. Style "FvwmBanner"   StaysOnTop
  114. Style "FvwmButtons"  NoTitle, NoHandles, Sticky, WindowListSkip,BorderWidth 5
  115. Style "*lock"        NoTitle, NoHandles, Sticky, WindowListSkip
  116. Style "xbiff"        NoTitle,            Sticky, WindowListSkip
  117.  
  118. #
  119. # Some mini-icons for the title bar
  120. #
  121. Style "*"         TitleIcon mini-x2.xpm
  122. Style "*xterm*"   TitleIcon mini-term.xpm
  123. Style "rxvt"      TitleIcon mini-term.xpm
  124. Style "xcalc"     TitleIcon mini-calc.xpm
  125. Style "xsession"  TitleIcon mini-bx2.xpm
  126. Style "xv"        TitleIcon mini-xv.xpm
  127. Style "Netscape"  TitleIcon mini-nscape.xpm
  128. Style "xmag"      TitleIcon mini-zoom.xpm
  129. Style "textedit"  TitleIcon mini-edit.xpm
  130. Style "tkps"      TitleIcon mini-run.xpm
  131. Style "Ghostview" TitleIcon mini-gv.xpm
  132. Style "Xcolorsel" TitleIcon mini-colors.xpm
  133. Style "IDL*"      TitleIcon mini-zoom.xpm
  134. Style "xeyes"     TitleIcon mini-eyes.xpm
  135. Style "*fm*"      TitleIcon mini-filemgr.xpm
  136. # xman resource names
  137. Style "topBox"    TitleIcon mini-book1.xpm
  138. Style "help"      TitleIcon mini-book2.xpm
  139. Style "manualBrowser" TitleIcon mini-book2.xpm
  140. # xpaint resource names
  141. Style "xpaint"    TitleIcon mini-paint.xpm
  142. Style "Canvas"    TitleIcon mini-paint.xpm
  143. Style "fatbits"   TitleIcon mini-paint.xpm
  144. Style "filebrowser" TitleIcon mini-ofolder.xpm
  145.  
  146. Style "FvwmFile"  TitleIcon mini-ofolder.xpm
  147. Style "XDbx"      TitleIcon mini-bug2.xpm
  148.  
  149.  
  150. #Style "rxvt"       Icon  term.xpm
  151. #Style "xterm"      Icon xterm.xpm
  152. #Style "color_xterm" Icon rterm.xpm
  153. #Style "Appointment" Icon datebook.xpm
  154. #Style "xcalc"      Icon Rcalc.xpm
  155. #Style "xbiff"      Icon mail1.xpm
  156. #Style "xmh"        Icon mail1.xpm, StartsOnDesk 2
  157. #Style "xman"       Icon xman.xpm
  158. #Style "xvgr"       Icon graphs.xpm
  159. #Style "matlab"       Icon math4.xpm
  160. #Style "xmag"       Icon mag_glass.xpm
  161. #Style "xgraph"       Icon graphs.xpm
  162. #Style "xv"         Icon xview.xpm
  163. #Style "FvwmButtons"  Icon toolbox.xpm
  164. #Style "xconsole"   Icon koala.xpm
  165. #Style "xsession"   Icon koala.xpm
  166. #Style "textedit"   Icon textedit.xpm
  167. #Style "ghostview"  Icon gv.xpm
  168.  
  169. #========================================================================#
  170.  
  171. #
  172. # Stuff to do at start-up
  173. #
  174.  
  175. AddToFunc "InitFunction"    "I" Exec xsetroot -solid cyan4 &
  176. #+                          "I" Module FvwmBanner
  177. +                           "I" Module FvwmButtons
  178. +                           "I" Module FvwmTaskBar
  179. #+                          "I" Module FvwmPager 0 3
  180.  
  181. AddToFunc "RestartFunction" "I" Module FvwmButtons
  182. +                           "I" Module FvwmTaskBar
  183. #+                          "I" Module FvwmPager 0 3
  184.  
  185.  
  186. #========================================================================#
  187.  
  188. # Now define some handy complex functions
  189.  
  190. #
  191. # This one moves and then raises the window if you drag the mouse,
  192. # only raises the window if you click, or does a full maximize if 
  193. # you double click
  194. #
  195. AddToFunc "Move-or-Raise" "M" Move
  196. +                         "M" Raise
  197. +                         "C" Raise
  198. +                         "D" Maximize 100 100
  199.  
  200. #
  201. # This one moves and then lowers the window if you drag the mouse,
  202. # only lowers the window if you click, or does a RaiseLower if you double 
  203. # click
  204. #
  205. AddToFunc "Move-or-Lower" "M" Move
  206. +                         "M" Lower
  207. +                         "C" Lower
  208. +                         "D" RaiseLower
  209.  
  210. #
  211. # This one moves or (de)iconifies:
  212. #
  213. AddToFunc "Move-or-Iconify" "M" Move
  214. +                           "D" Iconify
  215.  
  216. #
  217. # This one resizes and then raises the window if you drag the mouse,
  218. # only raises the window if you click,  or does a RaiseLower if you double 
  219. # click
  220. #
  221. AddToFunc "Resize-or-Raise" "M" Resize
  222. +                           "M" Raise
  223. +                           "C" Raise
  224. +                           "D" RaiseLower
  225.  
  226.  
  227. #========================================================================#
  228.  
  229. #
  230. # Now define the menus - defer bindings until later
  231. #
  232.  
  233. # This is for the Start menu of the FvwmTaskBar
  234.  
  235. AddToMenu "StartMenu"
  236. + "New shell        %mini-sh1.xpm%"         Exec    color_xterm -ls -sb -fn 8x13 & 
  237. + "Manual pages     %mini-book1.xpm%"       Exec    xman &
  238. + "Magnifying glass %mini-zoom.xpm%"         Exec xmag &
  239. + "Applications     %mini-x2.xpm%"          Popup   Applications
  240. + "Games            %mini-happy.xpm%"       Popup   Games
  241. + ""                                        Nop 
  242. + "Lock Screen      %mini-lock.xpm%"        Exec    xlock &
  243. + "Refresh Screen   %mini-ray.xpm%"         Refresh
  244. + ""                                        Nop
  245. + "Exit Fvwm        %mini-stop.xpm%"        Popup   Quit-Verify
  246.  
  247. AddToMenu "Shells" "Shells" Title
  248. + "Xterm    (7x14 font)%mini-term.xpm%"    Exec xterm -sb -sl 500 -j -ls -fn 7x14 &
  249. + "Color Rxvt    (VT100)%mini-term.xpm%"        Exec rxvt -font 7x14 -ls &
  250. + "Color Xterm    (7x14 font)%mini-term.xpm%"     Exec color_xterm -sb -sl 500 -j -ls -fn 7x14 -fb 7x14bold -title "Color xterm" &
  251. + "Color Xterm    (8x13 font)%mini-term.xpm%"     Exec color_xterm -sb -sl 500 -j -ls -fn 8x13 -title "Color xterm" &
  252. + ""                            Nop
  253. + "Large Xterm    (10x20 font)%mini-term.xpm%"     Exec xterm -sb -sl 500 -j -ls -fn 10x20 &
  254. + "Large Rxvt    (10x20 font)%mini-term.xpm%"     Exec rxvt -font 10x20 -ls &
  255. + "Large Color Xterm    (10x20 font)%mini-term.xpm%" Exec color_xterm -sb -sl 500 -j -ls -fn 10x20 &
  256.  
  257. AddToMenu "Screensaver" "Screensaver" Title
  258. + "Bat%mini-bball.xpm%"        Exec xlock -nolock -nice 0 -mode bat &
  259. + "Blank%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode blank &
  260. + "Blot%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode blot &
  261. + "Bounce%mini-bball.xpm%"     Exec xlock -nolock -nice 0 -mode bounce &
  262. + "Flame%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode flame &
  263. + "Galaxy%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode galaxy &
  264. + "Grav%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode grav &
  265. + "Helix%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode helix &
  266. + "Hop%mini-bball.xpm%"        Exec xlock -nolock -nice 0 -mode hop &
  267. + "Hyper%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode hyper &
  268. + "Kaleid%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode kaleid &
  269. + "Life%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode life &
  270. + "Life3d%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode life3d &
  271. + "Maze%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode maze &
  272. + "Pyro%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode pyro &
  273. + "Qix%mini-bball.xpm%"        Exec xlock -nolock -nice 0 -mode qix &
  274. + "Random%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode random &
  275. + "Rect%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode rect &
  276. + "Rock%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode rock &
  277. + "Rotor%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode rotor &
  278. + "Sphere%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode sphere &
  279. + "Spline%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode spline &
  280. + "Swarm%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode swarm &
  281. + "Wator%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode wator &
  282. + "Worm%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode worm &
  283. + "World%mini-bball.xpm%"    Exec xlock -nolock -nice 0 -mode world &
  284.  
  285. AddToMenu "Screenlock" "Lock Screen" Title
  286. + "Bat%mini-rball.xpm%"        Exec xlock -nice 0 -mode bat &
  287. + "Blank%mini-rball.xpm%"    Exec xlock -nice 0 -mode blank &
  288. + "Blot%mini-rball.xpm%"    Exec xlock -nice 0 -mode blot &
  289. + "Bounce%mini-rball.xpm%"    Exec xlock -nice 0 -mode bounce &
  290. + "Flame%mini-rball.xpm%"    Exec xlock -nice 0 -mode flame &
  291. + "Galaxy%mini-rball.xpm%"    Exec xlock -nice 0 -mode galaxy &
  292. + "Grav%mini-rball.xpm%"    Exec xlock -nice 0 -mode grav &
  293. + "Helix%mini-rball.xpm%"    Exec xlock -nice 0 -mode helix &
  294. + "Hop%mini-rball.xpm%"        Exec xlock -nice 0 -mode hop &
  295. + "Hyper%mini-rball.xpm%"    Exec xlock -nice 0 -mode hyper &
  296. + "Kaleid%mini-rball.xpm%"    Exec xlock -nice 0 -mode kaleid &
  297. + "Life%mini-rball.xpm%"    Exec xlock -nice 0 -mode life &
  298. + "Life3d%mini-rball.xpm%"    Exec xlock -nice 0 -mode life3d &
  299. + "Maze%mini-rball.xpm%"    Exec xlock -nice 0 -mode maze &
  300. + "Pyro%mini-rball.xpm%"    Exec xlock -nice 0 -mode pyro &
  301. + "Qix%mini-rball.xpm%"        Exec xlock -nice 0 -mode qix &
  302. + "Random%mini-rball.xpm%"    Exec xlock -nice 0 -mode random &
  303. + "Rect%mini-rball.xpm%"    Exec xlock -nice 0 -mode rect &
  304. + "Rock%mini-rball.xpm%"    Exec xlock -nice 0 -mode rock &
  305. + "Rotor%mini-rball.xpm%"    Exec xlock -nice 0 -mode rotor &
  306. + "Sphere%mini-rball.xpm%"    Exec xlock -nice 0 -mode sphere &
  307. + "Spline%mini-rball.xpm%"    Exec xlock -nice 0 -mode spline &
  308. + "Swarm%mini-rball.xpm%"    Exec xlock -nice 0 -mode swarm &
  309. + "Wator%mini-rball.xpm%"    Exec xlock -nice 0 -mode wator &
  310. + "Worm%mini-rball.xpm%"    Exec xlock -nice 0 -mode worm &
  311. + "World%mini-rball.xpm%"    Exec xlock -nice 0 -mode world &
  312.  
  313. AddToMenu "Games" "Games" Title
  314. + "Maze%mini-maze.xpm%"        Exec maze &
  315. +              "Spider" Exec exec spider &
  316. + "Workman%mini-cdlabel.xpm%"    Exec exec workman &
  317. + "Xboard%mini-slon.xpm%"    Exec xboard &
  318. + "Xeyes%mini-eyes.xpm%"    Exec xeyes &
  319. + "Xhextris%mini-hextris.xpm%"  Exec exec xhextris &
  320. +              "Xlander" Exec exec xlander &
  321. + "Xlogo%mini-bx2.xpm%"        Exec xlogo &
  322. + "Xmahjongg%mini-xmahjongg%"    Exec exec xmahjongg &
  323. + "Xroach%mini-roach.xpm%"    Exec exec xroach &
  324. + "Xtetris%mini-tetris.xpm%"    Exec xtetris &
  325. +              "Xvier" Exec exec xvier &
  326.  
  327. AddToMenu "Applications" "Applications" Title
  328. + "Ghostview%mini-gv.xpm%"    Exec ghostview &
  329. + "Xview%mini-xv.xpm%"        Exec xv &
  330. + "Textedit%mini-edit.xpm%"     Exec textedit -geometry 630x490+95+5 &
  331. + "Xedit%mini-edit.xpm%"     Exec xedit &
  332. + "Xfilemanager%mini-filemgr.xpm%" Exec xfilemanager &
  333. + "Xfm%mini-filemgr.xpm%"    Exec xfm &
  334. + "Xfractint%mini-fractal.xpm%"    Exec rxvt -font 7x14 -e xfractint map=chroma &
  335. + "Xpaint%mini-paint.xpm%"    Exec xpaint &
  336. + "Xgrab%mini-camera.xpm%"    Exec xgrab &
  337. + "Xcolormap%mini-colors.xpm%"    Exec xcolormap &
  338. + "Xxgdb%mini-bug2.xpm%"    Exec xxgdb &
  339.  
  340. #
  341. # This menu is invoked as a sub-menu - it allows you to quit,
  342. # restart, or switch to another WM.
  343. #
  344. AddToMenu "Quit-Verify" "Really Quit Fvwm?" Title
  345. + "Restart%mini-turn.xpm%"        Restart fvwm95-2
  346. + ""                     Nop
  347. + "Start olvwm%mini-olwm.xpm%"        Restart /usr/openwin/bin/olvwm
  348. + "Start olwm%mini-olwm.xpm%"        Restart /usr/openwin/bin/olwm
  349. + ""                     Nop
  350. + "Yes, Really Quit%mini-exclam.xpm%"    Quit
  351. + "No, Don't Quit%mini-cross.xpm%"     Nop
  352.  
  353. #
  354. # Provides a list of modules to fire off
  355. #
  356. AddToMenu "Module-Popup" "Modules" Title
  357. + "Buttons"                Module FvwmButtons
  358. + "Clean-Up%mini-pencil.xpm%"        Module FvwmClean
  359. + "Task bar"                 Module FvwmTaskBar
  360. + "Identify%mini-question.xpm%"        Module FvwmIdent
  361. + "Save Desktop"            Module FvwmSave
  362. + "Debug%mini-bug2.xpm%"        Module FvwmDebug
  363. + "Pager"                Module FvwmPager 0 3
  364. + "Window List%mini-windows.xpm%"    Module FvwmWinList
  365. + "Talk"                Module FvwmTalk
  366. + "Configure%mini-hammer.xpm%"        Module FvwmConfig
  367.  
  368. #
  369. # This menu will fire up some very common utilities
  370. #
  371. AddToMenu "Utilities" "Utilities" Title
  372. + "Top%mini-run.xpm%"            Exec rxvt -font 7x14 -T Top -n Top -e top &
  373. + "Calculator%mini-calc.xpm%"        Exec xcalc &
  374. + "Manual pages%mini-book1.xpm%"     Exec xman &
  375. + "Magnifying glass%mini-zoom.xpm%"     Exec xmag &
  376. + "Oclock%mini-clock.xpm%"         Exec oclock &
  377. + ""                    Nop
  378. + "Applications%mini-x2.xpm%"        Popup Applications
  379. + "Shells%mini-term.xpm"        Popup Shells
  380. + "Games%mini-happy.xpm%"        Popup Games
  381. + ""                    Nop
  382. + "Screensaver%mini-display.xpm%"    Popup Screensaver
  383. + "Lock Screen%mini-lock.xpm%"        Popup Screenlock
  384. + ""                    Nop
  385. + "Modules%mini-modules.xpm%"        Popup Module-Popup
  386. + ""                    Nop
  387. + "Refresh Screen%mini-ray.xpm%"    Refresh
  388. + ""                    Nop
  389. + "Exit Fvwm%mini-stop.xpm%"        Popup Quit-Verify
  390.  
  391. #
  392. # This defines the most common window operations
  393. #
  394. AddToMenu "Window" "Window Ops" Title
  395. + "&Move"                     Function Move-or-Raise
  396. + "&Resize"                   Function Resize-or-Raise
  397. + "R&aise%mini-raise.xpm%"    Raise
  398. + "&Lower%mini-lower.xpm%"    Lower
  399. + "(De)Iconify"               Iconify
  400. + "(Un)Stick"                 Stick
  401. + "(Un)Maximize"              Maximize 100 100
  402. + ""                          Nop
  403. + "Kill"                      Destroy
  404. + "&Close"                    Delete
  405. + ""                          Nop
  406. + "Switch to..."              WindowList
  407. + "Refresh Screen%mini-ray.xpm%" Refresh
  408.  
  409. #
  410. # A trimmed down version of "Window Ops", good for binding to decorations
  411. #
  412. AddToMenu "Window-Ops2" "&Restore"        Iconify -1
  413. +                       "&Move"           Move-or-Raise
  414. +                       "&Size"           Resize-or-Raise
  415. +                       "Mi&nimize"       Iconify 1
  416. +                       "Ma&ximize"       Maximize 100 100
  417. +                       ""                Nop
  418. +                       "&Kill"           Destroy
  419. +                       "&Close    Alt+F4"   Delete
  420.  
  421. #========================================================================#
  422.  
  423. #
  424. # One more complex function - couldn't be defined earlier because it used 
  425. # pop-up menus
  426. #
  427. # This creates the "system" menu for the title-bar window-ops
  428. # pop-up
  429. #
  430. AddToFunc "window_ops_func" "C" PopUp Window-Ops2
  431. +              "M" PopUp Window-Ops2
  432. +              "D" Delete  
  433.  
  434.  
  435. #========================================================================#
  436.  
  437. #
  438. # Mouse bindings
  439. #
  440.  
  441. # First, for the mouse in the root window
  442. # Button 1 gives the Utilities menu
  443. # Button 2 gives the Window Ops menu
  444. # Button 3 gives the WindowList (like TwmWindows)
  445. # I use the AnyModifier (A) option for the modifier field, so you can hold down
  446. # any shift-control-whatever combination you want!
  447.  
  448. #     Button    Context Modifi     Function
  449. Mouse 1        R       A       Menu "Utilities" Nop
  450. Mouse 2        R        A       Menu "Window Ops" Nop
  451. Mouse 3         R       A       WindowList
  452. #Mouse 3    R        A          Module "winlist" FvwmWinList transient
  453.  
  454. # Now the title bar buttons
  455. # Any button in the left title-bar button gives the window ops menu
  456. # Any button in the first right title-bar button Iconifies the window
  457. # Any button in the second title-bar button full-maximizes
  458. # Any button in the third (rightmost) title-bar button closes
  459. # Note the use of "Mouse 0" for AnyButton.
  460.  
  461. #     Button    Context Modif     Function
  462. Mouse 0        1        A          Function "window_ops_func"
  463. Mouse 1         2       A       Delete
  464. Mouse 0        4        A         Maximize 100 100
  465. Mouse 0        6        A         Iconify
  466.  
  467. #
  468. # Now the rest of the frame
  469. # Here I invoke my complex functions for Move-or-lower, Move-or-raise,
  470. # and Resize-or-Raise. 
  471. #
  472. # Button 1 in the corner pieces, with any modifiers, gives resize or raise
  473. Mouse 1        F    A    Function "Resize-or-Raise"
  474. # Button 1 in the title, sides, or icon, w/ any modifiers, gives move or raise
  475. Mouse 1        TS    A    Function "Move-or-Raise"
  476.  
  477. # Button 1 in an icons gives move for a drag, de-iconify for a double-click,
  478. # nothing for a single click
  479. # Button 2 in an icon, w/ any modifiers, gives de-iconify
  480. Mouse 1        I    A    Function "Move-or-Iconify"
  481. Mouse 2        I    A    Iconify
  482.  
  483. # Button 2 in the corners, sides, or title-bar gives the window ops menu
  484. Mouse 2        FST    A    Function "window_ops_func"
  485.  
  486. # Button 3 anywhere in the decoration (except the title-bar buttons)
  487. # does a raise-lower
  488. Mouse 3        TSIF    A    RaiseLower
  489.  
  490. # Button 3 in the window, with the Modifier-1 key (usually alt or diamond)
  491. # gives Raise-Lower. Used to use control here, but that interferes with xterm
  492. Mouse 3         W       M       RaiseLower
  493.  
  494. #========================================================================#
  495.  
  496. # Now some keyboard shortcuts.
  497.  
  498. # Arrow Keys
  499. # press arrow + control anywhere, and scroll by 1 page
  500. Key Left    A    C    Scroll -100 0
  501. Key Right    A    C    Scroll +100 +0
  502. Key Up        A    C    Scroll +0   -100
  503. Key Down    A    C    Scroll +0   +100
  504.  
  505. # press arrow + meta key, and scroll by 1/10 of a page
  506. Key Left    A    M    Scroll -10 +0
  507. Key Right    A    M    Scroll +10 +0
  508. Key Up        A    M    Scroll +0   -10
  509. Key Down    A    M    Scroll +0   +10
  510.  
  511. # press shift arrow + control anywhere, and move the pointer by 1% of a page
  512. Key Left    A    SC    CursorMove -1 0
  513. Key Right    A    SC    CursorMove +1 +0
  514. Key Up        A    SC    CursorMove +0   -1
  515. Key Down    A    SC    CursorMove +0   +1
  516.  
  517. # press shift arrow + meta key, and move the pointer by 1/10 of a page
  518. Key Left    A    SM    CursorMove -10 +0
  519. Key Right    A    SM    CursorMove +10 +0
  520. Key Up        A    SM    CursorMove +0   -10
  521. Key Down    A    SM    CursorMove +0   +10
  522.  
  523. # Keyboard accelerators
  524. Key F1        A    M    Popup "Utilities"
  525. Key F1        A    M    Popup "Utilities"
  526. Key F2        A    M    Popup "Window Ops"
  527. Key F3        A    M    Module "WindowList" FvwmWinList 
  528. Key F4        A    M    Iconify
  529. Key F5        A    M    Move
  530. Key F6        A    M    Resize
  531.  
  532. #Page Up/Dapge Down keys are used to scroll by one desktop page
  533. # in any context, press page up/down + control
  534. # in root context, just pressing page up/down is OK
  535. # I prefer the non-wrapping scroll. These are for example purposes only
  536. #Key Next    A       C       Scroll 100000 0
  537. #Key Next    R       N       Scroll 100000 0  
  538. #Key Prior    A       C       Scroll -100000 0
  539. #Key Prior    R       N       Scroll -100000 0
  540.  
  541. Key Tab         A       M       Prev Focus
  542. Key Tab         A       MS      Next Focus
  543.  
  544. Key Escape      A       C       WindowList
  545.  
  546. #========================================================================#
  547.  
  548. # Definitions used by the modules
  549.  
  550. #------------------ Pager
  551. *FvwmPagerBack grey60
  552. *FvwmPagerFore black
  553. *FvwmPagerFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  554. *FvwmPagerHilight #c0c0c0
  555. *FvwmPagerGeometry -1-1
  556. *FvwmPagerLabel 0 Desktop
  557. *FvwmPagerSmallFont 5x8
  558.  
  559. #------------------ FvwmButtons (from 2.0.42)
  560. *FvwmButtonsFore Black
  561. *FvwmButtonsBack #c0c0c0
  562. *FvwmButtonsFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  563. # Geometry - really likes to pick its own size, but giving a position is OK
  564. *FvwmButtonsGeometry -5-34
  565. # Layout: specify rows or columns, not both
  566. *FvwmButtonsRows 1
  567.  
  568. # Define the buttons to use.....
  569.  
  570. *FvwmButtons(Title xclock, Icon clock.xpm, \
  571.              Swallow(UseOld) "xclock" 'Exec xclock -bg \#c0c0c0 \
  572.              -padding 0 -geometry -1500-1500 &')
  573. *FvwmButtons(2x1, Title load, \
  574.              Swallow(UseOld) "xload" 'Exec xload \
  575.                      -nolabel -bg grey60 -update 5 -geometry -1500-1500 &')
  576. *FvwmButtons(Title xterm, Icon rterm.xpm, \
  577.              Action 'Exec "XTerm" color_xterm \
  578.                      -ls -sb -fn 8x13 -title "Color xterm" &')
  579. *FvwmButtons(Title xfm, Icon Xfm.xpm, \
  580.              Action 'Exec "Xfm" xfm -title "File Manager" &') 
  581. *FvwmButtons(Title textedit, Icon textedit.xpm, \
  582.              Action 'Exec "Textedit" textedit &')
  583. *FvwmButtons(Title xcalc, Icon rcalc.xpm, \
  584.              Action 'Exec "Calculator" xcalc &')
  585. *FvwmButtons(Title xview, Icon xview.xpm, \
  586.              Action 'Exec "xv" xv &')
  587. *FvwmButtons(Title gview, Icon gv.xpm, \
  588.              Action 'Exec "ghostview" ghostview &')
  589. *FvwmButtons(Title netscape, Icon nscape.xpm, \
  590.              Action 'Exec "Netscape" netscape -geometry 920x622+90+5 &')
  591. *FvwmButtons(Title kill, Icon rbomb.xpm, Action Destroy)
  592. *FvwmButtons(2x1, Swallow(UseOld) "Desktop" 'FvwmPager 0 0')
  593.  
  594. #------------------ Identify
  595. *FvwmIdentBack #000080
  596. *FvwmIdentFore Yellow
  597. *FvwmIdentFont -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*-*-*
  598.  
  599. #------------------ FvwmWinList
  600. *FvwmWinListBack #c0c0c0
  601. *FvwmWinListFore Black
  602. *FvwmWinListFont -adobe-helvetica-bold-r-*-*-10-*-*-*-*-*-*-*
  603. *FvwmWinListAction Click1 Iconify -1,Focus
  604. *FvwmWinListAction Click2 Iconify
  605. *FvwmWinListAction Click3 Module "FvwmIdent" FvwmIdent
  606. *FvwmWinListUseSkipList
  607. *FvwmWinListGeometry +0-1
  608. *FvwmWinListShowCurrentDesk
  609.         
  610. #------------------ FvwmTaskBar
  611. Style "FvwmTaskBar" NoTitle,BorderWidth 4,HandleWidth 4,Sticky,StaysOnTop,WindowListSkip,CirculateSkip
  612.  
  613. *FvwmTaskBarGeometry +0-0
  614. *FvwmTaskBarFore Black
  615. *FvwmTaskBarBack #c0c0c0
  616. *FvwmTaskBarTipsFore black
  617. *FvwmTaskBarTipsBack bisque
  618. *FvwmTaskBarFont -adobe-helvetica-medium-r-*-*-*-120-*-*-*-*-*-*
  619. *FvwmTaskBarSelFont -adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*
  620. *FvwmTaskBarAction Click1 Iconify -1,Raise,Focus
  621. *FvwmTaskBarAction Click2 Iconify
  622. *FvwmTaskBarAction Click3 Module "FvwmIdent" FvwmIdent
  623. *FvwmTaskBarUseSkipList
  624. *FvwmTaskBarAutoStick
  625. *FvwmTaskBarStartName Start
  626. *FvwmTaskBarStartMenu StartMenu
  627. *FvwmTaskBarStartIcon mini-exp.xpm
  628. *FvwmTaskBarShowTips
  629. #*FvwmTaskBarShowTransients
  630. #*FvwmTaskBarClockFormat %I:%M%p
  631. #*FvwmTaskBarHighlightFocus
  632. #*FvwmTaskBarAutoHide
  633. *FvwmTaskBarMailCommand Exec color_xterm -T Mail -ls -fn 8x13 -e pine -i
  634.